<?php
/**
 * @package pmapi
 * @copyright Copyright (c)2014 Enrico Fagnoni
 * @license GNU General Public License version 3, or later
 *
 * @since 1.0.0
 */
 
defined('_JEXEC') or die;

if (!class_exists('LinkedDataView')) require(JPATH_COMPONENT.DS.'views'.DS.'linkeddata.php');

class PmapiViewOrder extends LinkedDataView
{
    protected function _computeETag()
    {
        return md5(serialize($this->order));
    }
    
        
    public function GET_RequestProcessor($tpl = null) 
    {
        $this->order = $this->get('Item');
        
        return parent::GET_RequestProcessor($tpl);            
    } 
}

